Verifies a window or control exists in the application. If the window or control is not found, the script fails or continues and displays a message in the Errors pane.
Syntax
CheckExists(FailureBehavior, "Warning")
Arguments
| Argument | Description |
|---|---|
| FailureBehavior | Optional failure behavior. True stops the script if the checkpoint fails. False displays a warning and continues playback. If not specified, True is used. |
| Warning | Optional message to display in the Errors pane and run report when checkpoints fail. |
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Example
Window("BugReporter").Label("labelProduct").CheckExists(True, "Product label not displayed")